{
  "chainer":
  {
    "in": ["utterance", "entities"],
    "pipe": [
      {
        "class_name": "rel_ranking_infer",
        "id": "pthr",
        "ranker": {"config_path": "{CONFIGS_PATH}/ranking/opendialkg_path_ranking_lite.json"},
        "load_path": "{DOWNLOADS_PATH}/wikidata_eng",
        "rel_q2name_filename": "wiki_dict_properties.pickle",
        "rels_to_leave": 40,
        "softmax": true
      },
      {
        "class_name": "wiki_parser",
        "id": "wiki_p",
        "wiki_filename": "{DOWNLOADS_PATH}/wikidata/wikidata_lite.hdt",
        "file_format": "hdt",
        "max_comb_num": 1000,
        "lang": "@en"
      },
      {
        "class_name": "dial_path_ranker",
        "wiki_parser": "#wiki_p",
        "path_ranker": "#pthr",
        "type_paths_file": "{DOWNLOADS_PATH}/wikidata/paths.json",
        "type_groups_file": "{DOWNLOADS_PATH}/wikidata/subclass_groups.json",
        "rel_freq_file": "{DOWNLOADS_PATH}/wikidata/rel_wiki_opendialkg_freq.json",
        "use_path_stat": true,
        "in": ["utterance", "entities"],
        "out": ["paths", "conf"]
      },
      {
        "class_name": "kg_dial_generator",
        "transformer_model": "microsoft/DialoGPT-small",
        "path_to_model": "{MODELS_PATH}/dialogpt_wiki",
        "in": ["utterance", "paths", "conf"],
        "out": ["generated_utterance", "conf"]
      }
    ],
    "out": ["generated_utterance", "conf"]
  },
  "metadata": {
    "variables": {
      "ROOT_PATH": "~/.deeppavlov",
      "DOWNLOADS_PATH": "{ROOT_PATH}/downloads",
      "MODELS_PATH": "{ROOT_PATH}/models",
      "CONFIGS_PATH": "{DEEPPAVLOV_PATH}/configs"
    },
    "requirements": [
      "{DEEPPAVLOV_PATH}/requirements/tf.txt",
      "{DEEPPAVLOV_PATH}/requirements/bert_dp.txt",
      "{DEEPPAVLOV_PATH}/requirements/fasttext.txt",
      "{DEEPPAVLOV_PATH}/requirements/pyinflect.txt",
      "{DEEPPAVLOV_PATH}/requirements/hdt.txt",
      "{DEEPPAVLOV_PATH}/requirements/spacy.txt",
      "{DEEPPAVLOV_PATH}/requirements/en_core_web_sm.txt"
    ],
    "download": [
      {
        "url": "http://files.deeppavlov.ai/kbqa/models/dialogpt_wiki.tar.gz",
        "subdir": "{MODELS_PATH}"
      },
      {
        "url": "http://files.deeppavlov.ai/kbqa/wikidata/path_ranking_data.tar.gz",
        "subdir": "{DOWNLOADS_PATH}/wikidata"
      },
      {
        "url": "http://files.deeppavlov.ai/kbqa/wikidata/wikidata_lite.hdt",
        "subdir": "{DOWNLOADS_PATH}/wikidata"
      },
      {
        "url": "http://files.deeppavlov.ai/kbqa/wikidata/wikidata_lite.hdt.index.v1-1",
        "subdir": "{DOWNLOADS_PATH}/wikidata"
      },
      {
        "url": "http://files.deeppavlov.ai/kbqa/wikidata/wiki_dict_properties.pickle",
        "subdir": "{DOWNLOADS_PATH}/wikidata_eng"
      }
    ]
  }
}
